import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'

export * from './modules/router'
export * from './modules/auth'
export * from './modules/app'
export * from './modules/tab'
export * from './modules/wms'
export * from './modules/wmts'

// 安装pinia全局状态库
export function installPinia(app) {
  const pinia = createPinia()
  pinia.use(piniaPluginPersist)
  app.use(pinia)
}
